package com.yiyoucheng.mapper;

import com.yiyoucheng.pojo.Department;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

@Mapper
public interface DepartmentMapper {
    //查询所有部门信息
    public List<Department> findAll();

    //根据父id查询部门信息
    public List<Department> findByPid(@Param("pid") int pid);

    //根据部门id查询部门层级关系level
    public String findLevel(int id);
}
